package user

import (
	"gitee.com/xgotool/backend-framework-template/service/users"
	"gitee.com/xiaoyutab/xgotool/individual/xginplus"
)

// 获取用户详细信息
//
//	GET	/user/profile
func Profile(c *xginplus.Context) *xginplus.Response {
	mod, err := users.Info(c.GetUint("uid"))
	if err != nil {
		return c.Error(err)
	}
	return c.SuccessAny(mod)
}
